package function

import (
	"SalesMangent/models"
)

func GetStora(name string) (error, []models.Stora) {
	var StoraData []models.Stora
	err := db.Table("stora").Where("c_code_name like ?", name).Order("c_code ASC").Find(&StoraData).Error
	return err, StoraData
}
